<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>选择器权重</title>

        <style>
            #pa {
                color: black;
            }

            .para {
                color: red;
            }

            p {
                color: green !important;
            }
        </style>
    </head>
    <body>
        <p id="pa" class="para">这是一段文字</p>
    </body>
</html>